package com.wdzl.biz;

import com.wdzl.dao.DeptDao;
import com.wdzl.entity.Depart;

import java.util.List;

public class DeptBiz {
    private DeptDao deptDao = new DeptDao();
    public List<Depart> getDeaprts(){
        return deptDao.getDeaprts();
    }

    //根据部门名称查询部门Id
    public int getDid(String dname){
        return deptDao.getDid(dname);
    }
}
